<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title _cascade="title">The RBL Group</title>
<link href="/style/core.css" rel="stylesheet" type="text/css" />
<link href="/style/sub.css" rel="stylesheet" type="text/css" />

<script src="/scripts/sifr.js" type="text/javascript"></script>
</head>

<body>
<div id="container">
	<h2 id="logo"><a href="/">The RBL Group</a></h2>
	<div id="searchNav">
		<form id="searchForm" action="/results">
			<input type="text" name="q" /> 
			<a id="search" href="javascript:document.getElementById('searchForm').submit();">SEARCH |</a>
		</form>
		<a id="contact" href="/contactus">CONTACT US</a>        
	 </div>
		
	<form id="goTab">
		<label>I want to...</label>
			<select>
				<option>Sign up for the newsletter.</option>
			</select>
			<a href="javascript:this.parentNode.submit();">GO</a>
		
	</form>
	
	<div id="content">
		<div id="subPage_header">&nbsp;</div>
		<div id="nav" _cascade="main_links">
			<ul>
				<li><b>ABOUT US</b></li>
				<li><a href="/our-people.php">Our People</a></li>
				<li><a href="/featured-clients.php">Featured Clients</a></li>
				<li><a href="/news-media.php">News &amp; Media</a></li>
				<li><a href="/rbl-story.php">The RBL Story</a></li>
			</ul>
			<ul>
				<li><b>FOCUS AREAS</b></li>
				<li><a href="/strategic-hr.php">Strategic HR</a></li>
				<li><a href="/leadership-brand">Leadership Brand</a></li>
				<li><a href="/global-presence.php">Global Presence</a></li>
			</ul>
			<ul>
				<li><b>SERVICES</b></li>
				<li><a href="/education-programs.php">Education Programs</a></li>
				<li><a href="/consulting.php">Consulting</a></li>
				<li><a href="/speakers.php">Speakers</a></li>
			</ul>
			<ul>
				<li><b>RESOURCES</b></li>
				<li><a href="/books-articles.php">Books &amp; Articles</a></li>
				<li><a href="/research.php">Research</a></li>
				<li><a href="/online-tools.php">Online Tools</a></li>
				<li><a href="/events.php">Events</a></li>
			</ul>
			<ul>
				<li><b>RBL INSTITUTE</b></li>
				<li><a href="/learn-more.php">Learn More</a></li>
				<li><a href="http://www.rblinstitute.com/">Login</a></li>
			</ul>
		</div>

		<div id="subContent">
			<div _cascade="page_title"><h3>Making Intagibles Tangible</h3></div>
             <table><tr><td id="leftContent" valign="top">
				<a href="/resources/books-and-articles/articles" class="tabContrast">See All Articles<span>&nbsp;</span></a>
				<strong class="tab">Books<span>&nbsp;</span></strong>  
				<span class="hr"><hr /></span>
				<br />
				<div id="article_index_manual">

				</div>
				<div id="article_index_automatic">

<?php
/*
<div id="bookDetail">
	<div id="image"></div>
	<div id="title"></div>
	<div id="tagline"></div>
	<div id="author"></div>
	<div id="buttons"></div>
	<div id="summary" class="shadowBorder"></div>
</div>
<!-- end div bookDetail -->
*/
$books = $page->getSubpages(1, "publish DESC"); // depth ( (0=peers, 1=direct children, 2=grandchildren, 3=etc), order by, limit )
foreach($books as $book) {
/*
	$bookDetails = $book->contents["main_content"];

	//echo preg_replace('/<h4>(.*)<\/h4>/', '<h4><a href="/resources/books-and-articles/books/' . $book->name . '">$1</a></h4>', $bookDetails);
	$bookDetails = preg_replace('|<div id="bookDetail">|', '<div class="book">', $bookDetails);
	$bookDetails = preg_replace('|<div id="image">(.*)</div>|', '<a href="/resources/books-and-articles/books/' . $book->name . '">$1</a><br />', $bookDetails);
		preg_match('|<div id="title"><h3>(.*)</h3></div>|', $bookDetails, $titleMatches);
		$title = substr($titleMatches[1], 0, 35);
	$bookDetails = preg_replace('|<div id="title"><h3>(.*)</h3></div>|', '<h3><a href="/resources/books-and-articles/books/' . $book->name . '">' . $title . '...</a></h3>', $bookDetails);
	$bookDetails = preg_replace('|<div id="tagline">(.*)</div>|', '&nbsp;', $bookDetails);
		preg_match('|<div id="author">(.*)</div>|', $bookDetails, $authorMatches);
		$authorList = preg_replace('|<a href="(.+?)">|', '&nbsp;', $authorMatches[1]);
		$authorList = preg_replace('|</a>|', '&nbsp;', $authorList);
		$authorList = substr($authorList, 0, 60);
	$bookDetails = preg_replace('|<div id="author">(.*)</div>|', '<p>' . $authorList . '...</p>', $bookDetails);
		preg_match('|<div id="buttons">(.*)</div>|', $bookDetails, $matches);
		$buttons = preg_replace('|<a (.+?)>+|', '<a $1 class="button">', $matches[1]);
	$bookDetails = preg_replace('|<div id="buttons">(.*)</div>|', '<span>'.$buttons.'</span>', $bookDetails);
	//$bookDetails = preg_replace('|<div (id="summary")? class="shadowBorder">(.*?)</div>|s', '&nbsp;', $bookDetails);
	$bookDetails = preg_replace('|<div id="summary" class="shadowBorder">(.*?)</div>|s', '&nbsp;', $bookDetails);
	$bookDetails = preg_replace('|</div> <!-- end div bookDetail -->|', '</div> <!-- end class book -->', $bookDetails);

*/
	//echo preg_replace('/<h4>(.*)<\/h4>/', '<h4><a href="/resources/books-and-articles/books/' . $book->name . '">$1</a></h4>', $bookDetails);

/*******/

	// opening tag
	$bookDetails = '<div class="book">';
	//$bookDetails = '<table class="book"><tr><td>';

	// image
	$bookDetails .= '<a href="/resources/books-and-articles/books/' . $book->name . '">' . $book->contents["image"] . '</a><br />';

	// booktitle
	preg_match('|<h3>(.*)</h3>|', $book->contents["booktitle"], $titleMatches);
	$title = substr($titleMatches[1], 0, 35);
	$bookDetails .= preg_replace('|<h3>(.*)</h3>|', '<h5><a href="/resources/books-and-articles/books/' . $book->name . '">' . $title . '...</a></h5>', $book->contents["booktitle"]);

	// author
	$authorList = preg_replace('|<a href="(.+?)">|', '&nbsp;', $book->contents["author"]);
	$authorList = preg_replace('|</a>|', '&nbsp;', $authorList);
	$authorList = substr($authorList, 0, 60);
	$bookDetails .= '<p>' . $authorList . '...</p>';

	// buttons
		$buttons = preg_replace('|<a (.+?)>+|', '<a $1 class="button">', $book->contents["buttons"]);
	$bookDetails .= '<span>'.$buttons.'</span>';

	// closing tag
	$bookDetails .= '</div> <!-- end class book -->';
	//$bookDetails .= '</td></tr></table> <!-- end class book -->';

	print($bookDetails . "\r");
} ?>
					<div class="clear"></div>
				</div> <!-- end id article_index_automatic -->
           	</td><td id="rightContent" valign="top">
				<strong class="tab">Related Links <span>&nbsp;</span></strong>
				<div class="gradient">
					<span class="minGradient">&nbsp;</span>
                        <p id="tagCloud">
							<?php
							include_once(dirname(dirname(__file__)) . '/includes/Tag.php');
							$tags = new Tag();
							print($tags->createCloud());
							?>
                        </p>

					<div _cascade="sidebar">
					</div> <!-- end cascade sidebar -->

					<span class="clear">&nbsp;</span>
				</div>
            </td></tr></table><!-- end id rightContent -->
		</div>
		
		
		<div id="footer" _cascade="footer">
			<a href="/">Home</a> | <a href="#">Contact Us</a> | <a href="#">Sitemap</a> | <a href="#">Help</a> | <a href="#">Whatever</a> | <a href="/featured-clients.php">Clients</a><br />
			<span>2007 The RBL Group - All rights reserved</span>        
		</div>
	</div>
	<span id="shadow_left">&nbsp;</span>
	<span id="shadow_right">&nbsp;</span>
</div>
<script type="text/javascript">
//<![CDATA[
/* Replacement calls. Please see documentation for more information. */

if(typeof sIFR == "function"){

// This is the preferred "named argument" syntax
	sIFR.replaceElement(named({sSelector:"h3", sFlashSrc:"/flash/sifr.swf", sColor:"#666666", sWmode:"transparent"}));
	sIFR.replaceElement(named({sSelector:"h1", sFlashSrc:"/flash/sifr.swf", sColor:"#666666", sWmode:"transparent"}));
}
</script>
</body>
</html>
